import { createRouter, createWebHistory } from 'vue-router'
const recommend = import('../view/recommend/index.vue')
const myLove = import('../view/myLove/index.vue')
const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect: '/recommend' // 将根路径重定向到/home
    },
    {
      path: '/recommend/',
      component: recommend
    },
    {
      path: '/myLove',
      component: myLove
    }
  ]
} as any)

export default router
